package com.hao.crud.service;

import com.hao.crud.bean.Department;
import com.hao.crud.bean.Employee;
import com.hao.crud.dao.DepartmentMapper;
import com.hao.crud.dao.EmployeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author hao   email：huanghao.0508@qq.com
 * @ClassName：DepartmentService
 * @description ：TODO
 * @create 2020-10-30-16:17
 */
@Service
public class DepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;
    //获取所有的部门
    public List<Department> getAll(){
        return departmentMapper.selectByExample(null);
    }

}
